package cn.lyjuan.android.demofive.ui.effect;

import android.app.FragmentManager;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import cn.lyjuan.android.demofive.R;

public class DragActivity extends AppCompatActivity
{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.ui_drag_activity);

//        FrameLayout f1 = this.findViewById(R.id.ui_effec_drag_frame);
        FragmentManager fm = this.getFragmentManager();
        fm.beginTransaction()
                .replace(R.id.ui_effec_drag_frame1, new DragFragment1())
                .replace(R.id.ui_effec_drag_frame2, new DragFragment2())
                .replace(R.id.ui_effec_drag_frame3, new DragFragment3())
        .commit();
    }
}
